package com.zhou.basics.business.ad;

import com.zhou.basics.dao.AdMapper;
import com.zhou.basics.model.Ad;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @ProjectName: tfqingcheng
 * @ClassName: AdServiceImpl
 * @Time: 2020/2/25
 * @Author: zhou24
 * @Description:
 * @Experience:
 */
@Service
public class AdServiceImpl implements AdService {
    private static Logger logger = LoggerFactory.getLogger(AdServiceImpl.class);
    @Resource
    private AdMapper adMapper;


    @Override
    public Ad selectById(Integer id) {
        logger.info("hello=info==id:{}", id);
        logger.debug("hello=debug==id:{}", id);
        logger.error("hello=error==id:{}", id);
        List<String> list = new ArrayList<>();
        return adMapper.selectByPrimaryKey(id);
    }
}
